package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.common.R;
import com.itheima.reggie.entity.Dish;
import com.itheima.reggie.entity.dto.DishDto;

import javax.xml.crypto.Data;

public interface DishService extends IService<Dish> {

    //新增菜品，同时插入菜品对应的口味数据，需要同时操作两张表dish和dish_flavor
    public void saveWithFlavor(DishDto dishDto);

    //根据ID查询菜品和对应口味信息
    public DishDto getByIdWithFlavor(Long id);
    //修改菜品
    public void updateWithFlavor(DishDto dishDto);

    public R<String> deleteMoreDish(String ids);
}
